//
//  MainThreeCollectionReusableView.m
//  KaKaWallet
//
//  Created by admin on 2016/10/26.
//  Copyright © 2016年 ibendi. All rights reserved.
//

#import "MainThreeCollectionReusableView.h"

@implementation MainThreeCollectionReusableView
-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        UIView *bkView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, 110)];
        bkView.backgroundColor =UIColorHex(0xf2f2f2);
        [self addSubview:bkView];
        
        
        UIButton *acctionBtn = [UIButton buttonWithType:UIButtonTypeCustom];
        [bkView addSubview:acctionBtn];
        acctionBtn.frame = CGRectMake(0, 10, [UIScreen mainScreen].bounds.size.width, 45);
        [acctionBtn setTitle:@"查看更多" forState:UIControlStateNormal];
        acctionBtn.backgroundColor = [UIColor whiteColor];
        [acctionBtn setTitleColor:UIColorHex(0x333333) forState:UIControlStateNormal];
        [acctionBtn addTarget:self action:@selector(btnSender) forControlEvents:UIControlEventTouchUpInside];
        
        UIView *bottomView = [[UIView alloc] initWithFrame:CGRectMake(0, acctionBtn.endPointY+10, [UIScreen mainScreen].bounds.size.width, 45)];
        [bkView addSubview:bottomView];
        bottomView.backgroundColor = [UIColor whiteColor];
        
        UIImageView *imgTwo = [[UIImageView alloc] initWithFrame:CGRectMake(12, 10, 25, 25)];
        imgTwo.backgroundColor = [UIColor redColor];
        [bottomView addSubview:imgTwo];
        
        UILabel *titleLbl1 = [[UILabel alloc] initWithFrame:CGRectMake(imgTwo.endPointX+10, 10, 100, 25)];
        titleLbl1.text = @"为你推荐";
        titleLbl1.textColor = UIColorHex(0x33333);
        titleLbl1.font = [UIFont systemFontOfSize:16.0];
        [bottomView addSubview:titleLbl1];

        
    }
    return self;
}
-(void)btnSender
{
    if (self.kkAcction) {
        self.kkAcction();
    }
}
@end
